# RT-Thread building script for component

from building import *

cwd   = GetCurrentDir()
src   = Glob('Source/*.c')
src  += Glob('Cfg/*.c')
src  += Glob('OS/rtthread/*.c')

inc  = [cwd + '/Source']
inc += [cwd + '/Ports']
inc += [cwd + '/OS/rtthread']

group = DefineGroup('uC-Modbus', src, depend = ['PKG_USING_UCMODBUS'], CPPPATH = inc)

Return('group')
